﻿<UserControl xmlns:wp="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:System="clr-namespace:System;assembly=mscorlib"
    xmlns:me="clr-namespace:Coding4Fun.Cannon.Phone.Controls"
	x:Class="Coding4Fun.Cannon.Phone.Controls.SettingsView"
    
	 Width="640" Height="480">
	<Grid x:Name="LayoutRoot" Background="Black">
        <StackPanel Margin="10, 0">

            <Grid HorizontalAlignment="Stretch">
                <TextBlock Foreground="White" FontSize="32">
                    Inverse Tilt
                </TextBlock>
                <wp:ToggleControlSwitch x:Name="IsInverseTilt"
                    HorizontalAlignment="Right" 
                                        HorizontalContentAlignment="Right" 
                                        VerticalAlignment="Stretch" Width="300" Height="40" VerticalContentAlignment="Stretch" Margin="0,4" />
            </Grid>
            
            <TextBlock Foreground="White" FontSize="32">
                End Point Address
            </TextBlock>
            
            <TextBox HorizontalAlignment="Stretch"
                     x:Name="EndpointUrl" />

            <Grid HorizontalAlignment="Stretch">
                <TextBlock Foreground="White" FontSize="32">
                    Target RC Car
                </TextBlock>
                <wp:ToggleControlSwitch x:Name="UseRcCar"
                    HorizontalAlignment="Right" 
                                        HorizontalContentAlignment="Right" 
                                        VerticalAlignment="Stretch" Width="300" Height="40" VerticalContentAlignment="Stretch" Margin="0,4" />
            </Grid>
        </StackPanel>
        
        <StackPanel HorizontalAlignment="Center" VerticalAlignment="Bottom" Orientation="Horizontal">
            <Button Click="Save_Click" Content="Save"/>
            <Button Click="Cancel_Click" Content="Cancel" />
        </StackPanel>
    </Grid>
</UserControl>